<script type="text/javascript">
$(document).ready(function() { 
	ajaxLink();
}); 
</script>
<div class="content">
	<div class="simplebox grid740">
	<div class="titleh">
    <h3>栏目管理{if !empty($menuCategories)}{loop $menuCategories $cat} >> <a href="{url('Category','Index',array('pid'=>$cat['id']))}">{$cat['name']}</a>{/loop}{/if}{if $show_add}  [<a href="{url('Category','Edit', array('pid'=>$pid))}">添加栏目</a>]{/if}</h3>
    </div>
        <table class="tablesorter"> 
        	<thead> 
        		<tr> 
        			<th class="header">ID</th> 
        			<th class="header">栏目名称</th> 
        			<th class="header">栏目标签</th>
        			<th class="header">排序</th> 
        			<th class="header">更新时间</th> 
        			<th class="header">操作</th> 
        		</tr> 
        	</thead> 
            {if !empty($categories)}
            <tbody> 
            	{loop $categories $item}
            	<tr> 
            		<td>{$item['id']}</td> 
            		<td>{$item['name']}</td> 
            		<td>{$item['tags']}</td>
            		<td>{$item['orderby']}</td> 
            		<td>{$item['updated']}</td> 
            		<td><a href="{url('Category','Edit',array('id'=>$item['id']))}">编辑</a> {if $item['is_hide']==0}<a href="{url('Category','Hide',array('id'=>$item['id'],'hide'=>1))}" type="ajaxGet" confirm="确定要屏蔽么？">屏蔽</a>{else}<a href="{url('Category','Hide',array('id'=>$item['id'],'hide'=>0))}" type="ajaxGet" confirm="确定要取消屏蔽么？">取消屏蔽</a>{/if} <a href="{url('Category','Del',array('id'=>$item['id']))}" type="ajaxGet" confirm="确定要删除么？">删除</a>{if $show_sub} <a href="{url('Category','Index',array('pid'=>$item['id']))}">下级栏目</a>{/if}</td> 
            	</tr> 
            	{/loop}
            </tbody> 
            {/if}
        </table>
	</div>
</div>